<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminPlatformTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_platform', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('admin_id')->comment('管理员ID');
            $table->integer('platform')->comment('平台：10=恒博携程，11=茂华携程,20=恒博携程规则运价，30=恒博去哪，40=恒博同程');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin_platform');
    }
}
